#include <stdio.h>
int order(int arr[], int len, int num);

int main()
{
    int arr[] = {11, 22, 33, 44, 55};
    printf("输入你要查找的数：");
    int len = sizeof(arr) / sizeof(int);
    int x, num;
    int index = order(arr, len, num);
    scanf("%d", &x);
    if (num == x)
    {
        printf("%d", index);
    }

    return 0;
}

int order(int arr[], int len, int num)
{
    for (int i = 0; i < len; i++)
    {
        if (arr[i] == num)
        {
            return i;
        }
        else
            return -1;
    }
}